Skip to main content

Path Match Method

(QW.PathMatchMethod)

Overview

When configuring a path, use this feature to indicate the path matching method (path-pattern or path-regex).

Learn about Path Configuration.

Examples

Path Pattern Match Method

This example uses the path-pattern match method to enable configuring special processing parameters for requests for manifests (.m3u8 files).

{
"paths": [
{
"path-pattern": {
"pattern": "*.m3u8",
"case-sensitive": false
},
"path-metadata": {
"metadata": [
{
"generic-metadata-type": "MI.PrivateFeature.Qwilt.QW.PathMatchMethod",
"generic-metadata-value": {
"method": "path-pattern"
}
}
// ... other path-specific metadata rules ...
]
}
}
]
}


Path Regex Match Method

This example uses the path-regex match method to enable configuring special processing parameters for .mp4 video files or .ts streams. The regex expression says that a request URL that ends with either ".mp4" or ".ts" is a match. Note that the expression defines a non-capturing group.

{
"paths": [
{
"path-pattern": {
"pattern": "\\.(?:mp4|ts)$",
"case-sensitive": false
},
"path-metadata": {
"metadata": [
{
"generic-metadata-type": "MI.PrivateFeature.Qwilt.QW.PathMatchMethod",
"generic-metadata-value": {
"method": "path-regex"
}
}
// ... other path-specific metadata rules ...
]
}
}
]
}

Supported Properties

FieldDescriptionValid Values
methodIndicates the path matching method.- path-pattern: For glob-style matching. This is the default method if this feature is omitted.
- path-regex: For PCRE-style regular expression matching.